<DocumentFragment>
  <div
    class="ant-app"
  >
    <div>
      test
    </div>
    <div
      style="display: flex; flex-direction: column; padding: 24px; gap: 12px;"
    >
      <div
        class="ant-pro-card ant-pro-card-border ant-pro-card-collapse"
      >
        <div
          class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible"
        >
          <div
            class="ant-pro-card-title"
          >
            <span
              aria-label="right"
              class="anticon anticon-right ant-pro-card-collapsible-icon"
              role="img"
              tabindex="-1"
            >
              <svg
                aria-hidden="true"
                data-icon="right"
                fill="currentColor"
                focusable="false"
                height="1em"
                viewBox="64 64 896 896"
                width="1em"
              >
                <path
                  d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
                />
              </svg>
            </span>
            Collapsible
          </div>
          <div
            class="ant-pro-card-extra"
          >
            <button
              class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-btn-sm"
              type="button"
            >
              <span>
                Submit
              </span>
            </button>
          </div>
        </div>
        <div
          class="ant-pro-card-body"
        >
          Content
        </div>
      </div>
      <div
        class="ant-pro-card ant-pro-card-border ant-pro-card-collapse"
      >
        <div
          class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible"
        >
          <div
            class="ant-pro-card-title"
          >
            <span
              aria-label="right"
              class="anticon anticon-right ant-pro-card-collapsible-icon"
              role="img"
              tabindex="-1"
            >
              <svg
                aria-hidden="true"
                data-icon="right"
                fill="currentColor"
                focusable="false"
                height="1em"
                viewBox="64 64 896 896"
                width="1em"
              >
                <path
                  d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
                />
              </svg>
            </span>
            Collapsible
          </div>
          <div
            class="ant-pro-card-extra"
          >
            <button
              class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-btn-sm"
              type="button"
            >
              <span>
                Submit
              </span>
            </button>
          </div>
        </div>
        <div
          class="ant-pro-card-body"
        >
          Content
        </div>
      </div>
      <div
        class="ant-pro-card ant-pro-card-border ant-pro-card-collapse"
      >
        <div
          class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible"
        >
          <div
            class="ant-pro-card-title"
          >
            <span
              aria-label="right"
              class="anticon anticon-right ant-pro-card-collapsible-icon"
              role="img"
              tabindex="-1"
            >
              <svg
                aria-hidden="true"
                data-icon="right"
                fill="currentColor"
                focusable="false"
                height="1em"
                viewBox="64 64 896 896"
                width="1em"
              >
                <path
                  d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
                />
              </svg>
            </span>
            Collapsible
          </div>
          <div
            class="ant-pro-card-extra"
          >
            <button
              class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-btn-sm"
              type="button"
            >
              <span>
                Submit
              </span>
            </button>
          </div>
        </div>
        <div
          class="ant-pro-card-body"
        >
          Content
        </div>
      </div>
      <div
        class="ant-pro-card ant-pro-card-border ant-pro-card-size-small ant-pro-card-collapse"
      >
        <div
          class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible"
        >
          <div
            class="ant-pro-card-title"
          >
            <span
              aria-label="right"
              class="anticon anticon-right ant-pro-card-collapsible-icon"
              role="img"
              tabindex="-1"
            >
              <svg
                aria-hidden="true"
                data-icon="right"
                fill="currentColor"
                focusable="false"
                height="1em"
                viewBox="64 64 896 896"
                width="1em"
              >
                <path
                  d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
                />
              </svg>
            </span>
            Collapsible
          </div>
          <div
            class="ant-pro-card-extra"
          >
            <button
              class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-btn-sm"
              type="button"
            >
              <span>
                Submit
              </span>
            </button>
          </div>
        </div>
        <div
          class="ant-pro-card-body"
        >
          Content
        </div>
      </div>
      <div
        class="ant-pro-card ant-pro-card-border ant-pro-card-collapse"
        style="margin-block-start: 16px;"
      >
        <div
          class="ant-pro-card-header ant-pro-card-header-border"
        >
          <div
            class="ant-pro-card-title"
          >
            Collapsible - Controlled Custom
          </div>
          <div
            class="ant-pro-card-extra"
          >
            <span
              aria-label="right"
              class="anticon anticon-right"
              role="img"
              tabindex="-1"
            >
              <svg
                aria-hidden="true"
                data-icon="right"
                fill="currentColor"
                focusable="false"
                height="1em"
                viewBox="64 64 896 896"
                width="1em"
              >
                <path
                  d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
                />
              </svg>
            </span>
          </div>
        </div>
        <div
          class="ant-pro-card-body"
        >
          Content
        </div>
      </div>
      <div
        class="ant-pro-card ant-pro-card-border ant-pro-card-collapse"
        style="margin-block-start: 16px;"
      >
        <div
          class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible"
        >
          <div
            class="ant-pro-card-title"
          >
            <span>
              Collapse - 
            </span>
            Collapsible - Custom Icon
          </div>
        </div>
        <div
          class="ant-pro-card-body"
        >
          Content
        </div>
      </div>
    </div>
    <div
      style="margin-top: 20px; padding: 20px; background-color: #f5f5f5; border-radius: 6px;"
    >
      <h4>
        ProCard 可折叠功能 Props 说明：
      </h4>
      <ul>
        <li>
          <strong>
            title
          </strong>
          : 卡片标题
        </li>
        <li>
          <strong>
            headerBordered
          </strong>
          : 是否显示头部边框
        </li>
        <li>
          <strong>
            collapsible
          </strong>
          : 是否可折叠，可以是布尔值或 'icon'
        </li>
        <li>
          <strong>
            defaultCollapsed
          </strong>
          : 默认是否折叠
        </li>
        <li>
          <strong>
            collapsed
          </strong>
          : 受控的折叠状态
        </li>
        <li>
          <strong>
            onCollapse
          </strong>
          : 折叠状态变化回调函数
        </li>
        <li>
          <strong>
            extra
          </strong>
          : 卡片右上角额外内容
        </li>
      </ul>
      <h4>
        Collapsible 配置方式：
      </h4>
      <ul>
        <li>
          <strong>
            布尔值
          </strong>
          : collapsible= 显示默认折叠图标
        </li>
        <li>
          <strong>
            字符串
          </strong>
          : collapsible="icon" 只显示图标
        </li>
        <li>
          <strong>
            自定义控制
          </strong>
          : 使用 collapsed 属性进行受控
        </li>
      </ul>
      <h4>
        自定义图标配置：
      </h4>
      <ul>
        <li>
          <strong>
            collapsibleIconRender
          </strong>
          : 自定义折叠图标的渲染函数
        </li>
        <li>
          <strong>
            参数
          </strong>
          : 接收 { collapsed: boolean } 对象
        </li>
        <li>
          <strong>
            返回值
          </strong>
          : 返回自定义的 React 节点
        </li>
      </ul>
      <h4>
        事件处理：
      </h4>
      <ul>
        <li>
          <strong>
            onCollapse
          </strong>
          : 折叠状态变化时触发
        </li>
        <li>
          <strong>
            stopPropagation
          </strong>
          : 阻止事件冒泡，避免触发折叠
        </li>
        <li>
          <strong>
            自定义控制
          </strong>
          : 通过状态管理控制折叠状态
        </li>
      </ul>
      <h4>
        样式变体：
      </h4>
      <ul>
        <li>
          <strong>
            variant
          </strong>
          : 'outlined' 表示带边框样式
        </li>
        <li>
          <strong>
            size
          </strong>
          : 'small' 表示小尺寸
        </li>
        <li>
          <strong>
            headerBordered
          </strong>
          : 显示头部边框
        </li>
      </ul>
      <h4>
        使用场景：
      </h4>
      <ul>
        <li>
          <strong>
            信息展示
          </strong>
          : 可折叠的信息面板
        </li>
        <li>
          <strong>
            设置面板
          </strong>
          : 可折叠的设置选项
        </li>
        <li>
          <strong>
            详情展开
          </strong>
          : 点击展开查看详细信息
        </li>
        <li>
          <strong>
            空间节省
          </strong>
          : 节省页面空间，按需展开
        </li>
      </ul>
      <h4>
        最佳实践：
      </h4>
      <ul>
        <li>
          <strong>
            默认状态
          </strong>
          : 根据内容重要性设置默认折叠状态
        </li>
        <li>
          <strong>
            图标设计
          </strong>
          : 设计清晰的折叠/展开图标
        </li>
        <li>
          <strong>
            交互反馈
          </strong>
          : 提供明确的交互反馈
        </li>
        <li>
          <strong>
            状态管理
          </strong>
          : 合理管理折叠状态
        </li>
      </ul>
    </div>
  </div>
</DocumentFragment>